Repository navigation
fix(illusion-temple): open the barriers, add the monsters of temple 6, show the skills, and fix the entry - #1618
Merged
Conversation
…battle starts The barriers between the team bases and the arena are the water tiles of the temple map. The client clears them when it gets the BattleStarted state, but the server kept them blocked, so every step into the arena was set back.
…d one of temple 5 Temple 6 had no Illusion Sorcerer Spirits, so its players couldn't get skill points, and temple 5 cycled through two variants instead of three. Adds the monsters 400 to 403 and their spawns, on the same 32 positions as the other temples; version 5 of the update brings existing databases up to date.
…a blocked tile The warp picks a random tile of the entrance gate, and the gate of the illusion temples contains blocked tiles. A player who landed on one was sent to the safezone, and the illusion temple then ended the whole event because too few players were left, while the entrance was still open. Entering players now get a walkable tile of the entrance gate, and the illusion temple only ends for too few players once the match is running.
…o 403 Kills only counted for the monsters 386 to 399, so the new arena monsters of temple 5 and 6 gave no skill points.
…s own event messages The client knows its own player by the constant player id, but the illusion temple looked a skill target up by the raw map id and sent the raw map ids back. A player who used a skill on himself got the effect without seeing it, and his client kept waiting for the answer, so it sent no further skill request. The same applied to the relic carrier announcement, the end of a skill and the team state.
…ls for another reason The client shows "The admission and scroll levels do not match" for the result 3, which was also sent for a missing ticket, missing zen and any other failure, next to the server's own message with the real reason. Only a character level which doesn't fit the temple gets 3 now; the other failures get a result without a client text.
…class enter temple 5 Temple 5 ended at level 399 and temple 6 requires the master class, so a level 400 character without it couldn't enter any temple. The client sends them to temple 5. Version 5 of the update raises the limit where it's still 399.
…ance npc The client closes the illusion temple entrance window without a close request, as the original client did, so after talking to Mirage the player stayed in the npc dialog state and couldn't talk to any other npc until he logged in again. Talking to her doesn't change the player state anymore.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 44 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codacy reports the reflection on private fields (S3011). Like the existing helpers of the fixture, it goes through helpers with a justified suppression.
sven-n
approved these changes
Nov 24, 2026
sven-n
left a comment
Member
There was a problem hiding this comment.
LGTM, and thanks for one commit per problem of #1617, which made it easy to review:
- The arena barriers open with
BattleStarted. - Temple 6 gets its arena monsters, and temple 5 its third one (version 5 of
IllusionTempleDataUpdatePlugIn, which only touches the spawns version 4 put there). - Entering players land on a walkable tile.
- The receiver-relative player ids are used consistently.
- The enter result no longer blames the ticket level for other failures.
- Level 400 characters without the master class can enter temple 5.
I built it on current master and ran the tests, including Persistence.Initialization.Tests (1013 passed): everything passes.
Generated by Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1617
Fixes the problems of the issue, one commit per problem, so it can be reviewed commit by commit (or split, if you
prefer separate PRs).
Changes
fix(illusion-temple): open the arena barriers…):IllusionTempleContextclears theWaterattributeof every water tile of its map right before it sends
BattleStarted, the same rule as the client. Not closed again:the map belongs to the game instance and is discarded with it. Not done with a
MiniGameChangeEvent: its start eventsare applied before the 20 s preparation, and the client opens its own copy anyway.
…add the arena monsters of temple 6 and the third one of temple 5, and…grant skill points for the arena monsters 400 to 403): the monsters 400–403 (stats from the S6 data of the issue, which matches ours for386–399), temple 5 cycles through 398–400, temple 6 gets the 32 spawns of 401–403 on the same positions.
IllusionTempleDataUpdatePlugInversion 5 adds them to existing databases; on temple 5 it only changes the spawnswhich still have the monster version 4 put there.
ArenaMonsterRangeEnd403.fix(mini-games): keep entering players in the game…):MiniGameContext.GetEntrySpawnPositionreturns arandom walkable tile of the entrance gate when the landing tile isn't walkable (every mini game; Kanturu falls back to
it outside the tower).
IllusionTempleContextonly finishes for too few players while the match is running; before,RunGameAsyncalready handles too few players when the entrance closes (and gives the fee back).…name the player by the constant player id…): the skill target is looked up withPlayer.GetObject, and every Illusion Temple view call passesGetId(receiver)instead of the raw id. The viewinterfaces are unchanged.
…don't blame the ticket level…): onlyCharacterLevelTooLow/TooHighget 3; the other failuresget 1, which the client shows no text for (the server tells the reason). This changes what f7db7bf set on purpose:
the client's text for 3 is about the ticket level, so it's wrong for a missing ticket or missing zen.
…let characters of level 400 without the master class enter temple 5): initializer, andversion 5 of the update where the maximum is still 399. A master class at 400 also fits 381–400 and could enter temple 5
with a temple 5 ticket by a crafted request (the client sends temple 6 for them); excluding the master classes would
need a new definition field, so I left it.
…don't keep the player in the dialog of the entrance npc):TalkNpcAction.AdvancePlayerStateis false forNpcWindow.IllusionTemple.OpenedNpcis still set, so the refusals are still told by her.Testing
IllusionTempleContextTest(barriers open at the start and other blocked tiles stay; killing 386, 399,400 and 403 gives 2 points; entering on a gate with blocked tiles lands on the walkable one; leaving before the start
keeps the game open; Order of Protection on oneself is answered with the constant id; the state names the receiver as
relic carrier by the constant id; talking to the entrance npc doesn't block another npc),
IllusionTempleDataTest(fresh database and the version 4 repair: 18 spirits, 32 spawns per temple in the cycle order; an owner's temple 5
spawn stays; temple 5 maximum 399 → 400, an owner's 390 stays; a second run changes nothing) and the changed
IllusionTempleEnterResultMappingTests. Each new test fails without its fix.dotnet build src/MUnique.OpenMU.slnwithout warnings in the changed files;dotnet test src/MUnique.OpenMU.sln --no-build: MUnique.OpenMU.Tests 3533 (and one failure ofConcurrentIssuersStayWithinTheLimitAsync, "Collection wasmodified" in
PlayerInMemoryContext.DeleteExpiredLoginTicketsAsync; it passed 5 of 5 runs alone, on this branch and onmaster, so it looks like a race of its own), Persistence.Initialization.Tests 1013, Web.Tests 835, Network.Packets.Tests
726, Network.Tests 73, AttributeSystem.Tests 62, PlugIns.Tests 55, ChatServer.Tests 26, Pathfinding.Tests 10,
ConnectServer.Tests 8.
main(Linux), one player(
MinimumPlayerCount1; the problems were first seen with two):barriers open; spirits in temples 5 and 6, their kills give points; Order of Protection shown and usable again;
Tracking; the relic carrier is slowed (client side, as in S6); entering without zen gives one message; a level 400
character without the master class enters temple 5; after Mirage, the other NPCs talk again; the update ran at the
start (version 4 → 5).
changed).